import 'package:dk_flutter_base/dk_ui.dart';

class SupervisorListItemParams {
  String listId;
  String name;
  String date;

  SupervisorListItemParams(this.listId, this.name, this.date);
}

class SupervisorListItemContent extends StatelessWidget {
  final SupervisorListItemParams params;

  SupervisorListItemContent(this.params);

  @override
  Widget build(BuildContext context) {
    return Column(
      crossAxisAlignment: CrossAxisAlignment.start,
      children: <Widget>[
        Row(
          children: <Widget>[
            Padding(
              padding: EdgeInsets.only(left: 16, top: 20),
              child: Text(
//                "任务号：" + option.id.toString(),
                params.listId,
                style: TextStyle(
                  color: Color(0xff333333),
                  fontSize: 14,
                ),
              ),
            ),
            Padding(
              padding: EdgeInsets.only(left: 16, top: 20),
              child: Text(
//                "销售：" + (option?.dealerName ?? ""),
                params.name,
                style: TextStyle(
                  color: Color(0xff333333),
                  fontSize: 14,
                ),
              ),
            ),
          ],
        ),
        Row(
          children: <Widget>[
            Padding(
              padding: EdgeInsets.only(left: 16, top: 6, bottom: 20),
              child: Text(
//                "陪访时间："+option.visitAt,
                params.date,
                style: TextStyle(
                  color: Color(0xff666666),
                  fontSize: 12,
                ),
              ),
            ),
          ],
        ),
      ],
    );
  }
}
